package com.pet.exchange;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@Slf4j
@Component
public class PetAdoptInfoUtil {
    public String exchangePetAdoptInfo_petAdoptStatus(Integer petAdoptStatus){
        //根据状态码返回 0：待领养 1：已经被领养
        switch (petAdoptStatus){
            case 0:
                return "待领养";
            case 1:
                return "已经被领养";
            default:
                return "待领养";
        }
    }
}
